package com.zksk.mbg.admin.domain;

import com.baomidou.mybatisplus.annotation.*;
import com.zksk.common.core.web.domain.BaseEntity;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.experimental.Accessors;
import java.io.Serializable;
import java.util.Date;

/**
 * <p>
 * 产品枚举表（固定维护）
 * </p>
 *
 * @author Zksk Acmen
 * @since 2022-12-02
 */
@Data
@Accessors(chain = true)
@TableName("platform_product_enum")
@ApiModel(value = "ProductEnum对象", description = "产品枚举表（固定维护）")
public class ProductEnum extends BaseEntity {

    @ApiModelProperty("主键id")
    @TableId(value = "id", type = IdType.ASSIGN_ID)
    private Long id;

    @ApiModelProperty("产品名称（投标保函 履约保函）")
    @TableField("`name`")
    private String name;

    @ApiModelProperty("标签 ")
    @TableField("label")
    private String label;

    @ApiModelProperty("关联业务")
    @TableField("ref_bussiness")
    private String refBussiness;

    @ApiModelProperty("产品编码")
    @TableField("`code`")
    private String code;

    @ApiModelProperty("产品状态")
    @TableField("`status`")
    private Integer status;

    @ApiModelProperty("产品描述")
    @TableField("`desc`")
    private String desc;

    @TableField(value = "del_flag", fill = FieldFill.INSERT)
    @TableLogic
    private Integer delFlag;


    public static final String ID = "id";

    public static final String NAME = "name";

    public static final String LABEL = "label";

    public static final String REF_BUSSINESS = "ref_bussiness";

    public static final String CODE = "code";

    public static final String STATUS = "status";

    public static final String DESC = "desc";

    public static final String DEL_FLAG = "del_flag";

    @Override
    public Serializable pkVal() {
        return this.id;
    }

}
